package com.one.efaimaly.order.model.extra;

import com.one.common.common.order.AddMaterialItem;
import com.one.common.model.extra.BaseExtra;

import java.util.List;

/**
 * creator: zhulunjun
 * time:    2018/8/15
 * describe:
 */
public class MaterialFragmentExtra extends BaseExtra{
    private int type;
    private List<AddMaterialItem> data;
    private boolean isUpdate;

    public MaterialFragmentExtra(int type, List<AddMaterialItem> data) {
        this.type = type;
        this.data = data;
    }


    public MaterialFragmentExtra(int type, List<AddMaterialItem> data, boolean isUpdate) {
        this.type = type;
        this.data = data;
        this.isUpdate = isUpdate;
    }

    public boolean isUpdate() {
        return isUpdate;
    }

    public void setUpdate(boolean update) {
        isUpdate = update;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public List<AddMaterialItem> getData() {
        return data;
    }

    public void setData(List<AddMaterialItem> data) {
        this.data = data;
    }
}
